import {
    DIC
} from '@/const/dic'
// 项目成员--样品列表
export const memberTableOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    menu: true,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    align: "center",
    menuWidth: 200,
    refreshBtn: false,
    searchBtn: false,
    menuAlign: "center",
    columnBtn: false,
    column: [{
        label: "部门",
        prop: "department",
        // width: "220",
    }, {
        label: "姓名",
        prop: "name",
        // width: "200",
    }, {
        label: "联系方式",
        prop: "contactWay",
        width: "220",
    }, {
        label: "工时(小时)",
        prop: "manHour",
        // width: "200",
    }, {
        label: "添加人",
        prop: "addName",
        // width: "200",
    }, {
        label: "时间",
        prop: "addTime",
        // width: "200",
    }]
};

// 项目成员--选择成员
export const peopleTableOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    menu: false,
    selection: true,
    selectionWidth: 50,
    reserveSelection: false,
    menuBtn: true,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    columnBtn: false,
    refreshBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    align: "center",
    menuWidth: 200,
    pageSize: 10,
    searchBtn: false,
    menuAlign: "center",
    column: [{
        label: "姓名",
        prop: "name",
    }, {
        label: "联系方式",
        prop: "mobile",
    }]
};

// 项目资料
export const infoTableOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    menu: true,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    align: "center",
    menuWidth: 250,
    pageSize: 10,
    refreshBtn: false,
    searchBtn: false,
    menuAlign: "center",
    columnBtn: false,
    column: [{
        label: "资料名称",
        prop: "fileOldName",
    }, {
        label: "查看次数",
        prop: "checkNumber",
    }, {
        label: "下载次数",
        prop: "downloadNumber",
    }, {
        label: "上传人",
        prop: "uploadName",
    }, {
        label: "时间",
        prop: "uploadTime",
    }]
};

// x项目物品
export const goodsTableOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    menu: true,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    align: "center",
    menuWidth: 200,
    pageSize: 10,
    refreshBtn: false,
    searchBtn: false,
    menuAlign: "center",
    columnBtn: false,
    column: [{
        label: "物品类型",
        prop: "type",
        dicData:[ {value:0,label:'耗材'},{value:1,label:'危险品'},{value:2,label:'其他'} ]
    }, {
        label: "物品名称",
        prop: "name",
    }, {
        label: "规格",
        prop: "specification",
    }, {
        label: "数量",
        prop: "quantity",
    }, {
        label: "最后修改人",
        prop: "updateName",
    }, {
        label: "时间",
        prop: "updateTime",
    }]
};

// 项目设备 
export const eqTableOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    menu: true,
    menuBtn: false,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    align: "center",
    menuWidth: 150,
    pageSize: 10,
    refreshBtn: false,
    searchBtn: false,
    menuAlign: "center",
    columnBtn: false,
    column: [{
        label: "设备编码",
        prop: "coded",
        slot: true,
    }, {
        label: "设备名称",
        prop: "name",
        slot: true,
    }, {
        label: "型号",
        prop: "marking",
        slot: true,
    }, {
        label: "品牌",
        prop: "brand",
        slot: true,
    }, {
        label: "添加人",
        prop: "addName",
    }, {
        label: "时间",
        prop: "addTime",
    }]
};
// 项目设备--选择设备 
export const eqChangeOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    menu: false,
    menuBtn: false,
    selection: true,
    selectionWidth: 50,
    reserveSelection: false,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    align: "center",
    menuWidth: 200,
    pageSize: 10,
    refreshBtn: false,
    searchBtn: false,
    menuAlign: "center",
    columnBtn: false,
    column: [{
        label: "设备编号",
        prop: "coded",
        // width: "100",
    }, {
        label: "设备名称",
        prop: "name",
    }, {
        label: "型号",
        prop: "marking",
    }, {
        label: "品牌",
        prop: "brand",
        /*}, {
        label: "设备状态",
        prop: "status",
        slot: true,*/
    }, {
        label: "存放位置",
        prop: "location",
        slot: true,
    }]
};

// 项目资料 

export const reportTableOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    menu: true,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    align: "center",
    menuWidth: 250,
    pageSize: 10,
    refreshBtn: false,
    searchBtn: false,
    menuAlign: "center",
    columnBtn: false,
    column: [{
        label: "报告编名称",
        prop: "name",
        // width: "100",
    }, {
        label: "查看次数",
        prop: "sbno",
    }, {
        label: "下载次数",
        prop: "sbno",
    }, {
        label: "上传人",
        prop: "sbno",
    }, {
        label: "时间",
        prop: "sbno",
    }]
};